package jdk7;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class HandlingMoreThanOneTypeOfException {
	public void handle() {
		try {
			Class.forName("java.lang.String");
			FileInputStream fis = new FileInputStream("");
			fis.close();
			// 捕获多个异常
		} catch (ClassNotFoundException | FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
